import { BoxProps } from 'nextcae-base/src/dialogs/component/types';

export interface excelType extends BoxProps {
  onClose: () => void;
  onChange: any;
  title: string;
}
export interface ButtonGroupsProps {
  onImport?: React.ChangeEventHandler<HTMLInputElement>;
  onExport?: () => void;
  onDeleteAll?: () => void;
  btnDisabled?: boolean;
}
export interface footerButtonsProps {
  onClose?: () => void;
  handleSubmit?: () => void;
  btnDisabled?: boolean;
}
export interface TableProps {
  selectedKey?: number;
  initialData?: TableData[];
  /** 数据改变回调，当editKey不为undefined时，则编辑具体的某一行 */
  onDataChange?: (data: TableData[], editKey?: number) => void;
}
export interface TableData {
  key?: number;
  height: number;
  angles: number;
  thickness: number;
  /** 点坐标，用于渲染 */
  point?: THREE.Vector3Tuple;
}
export enum ContextType {
  InsertRowAbove = 'Insert row above',
  InsertRowBelow = 'Insert row below',
  DeleteRow = 'Delete selected row',
  DeleteAll = 'Delete all rows',
}
